package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.Domain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_channel")
@ApiModel(value = "Usertree对象", description = "用户关系树")
public class UserChannel extends Domain {
    //id策略采用自增长方式
    @JsonFormat(
            shape = JsonFormat.Shape.STRING
    )
    @TableId(value = "id", type = IdType.AUTO)//如果没有这句 id会以很大的id
    @ApiModelProperty(name = "id", value = "主键-ID")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = " 代收状态  1 启用 0 禁用")
    private Integer receiveStatus;
    @ApiModelProperty(value = "代付状态 1 启用 0 禁用")
    private Integer payStatus;
    @ApiModelProperty(value = "代收费率")
    private BigDecimal receiveRate;
    @ApiModelProperty(value = "单笔代收金额")
    private BigDecimal receiveAmount;
//    @ApiModelProperty(value = "秘钥")
//    private String secertKey;
    @ApiModelProperty(value = "代付费率")
    private BigDecimal payRate;
    @ApiModelProperty(value = "单笔代付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "通道编码")
    private String channelCode;
    @ApiModelProperty(value = "通道名称")
    private String channelName;

}